Skip to content

import_tg_results translate#41

Open
yzhou-cmap wants to merge 20 commits into
developfrom
translate_import_tg
Open

import_tg_results translate#41
yzhou-cmap wants to merge 20 commits into
developfrom
translate_import_tg

Conversation

@yzhou-cmap

Copy link
Copy Markdown
Contributor

Macro to python: import_tg_results
Also update trip_gen.bat to run the new script

Macro to python: import_tg_results
Also update trip_gen.bat to run the new script
@yzhou-cmap yzhou-cmap requested a review from kcazzatoCMAP March 26, 2026 20:46
tinleycraig and others added 19 commits March 27, 2026 09:15
…-trip-generation-model-code

File & script updates to support the trip generation model code
…ntbat-to-support-c26q2

run_transit_assignment.bat revised for c26q2
…nt-to-install-mode-dest-code

Remove cmap_modedest package and install from GitHub
…tion

Create and/or activate a conda R environment to run R scripts
Refactor code structure for improved readability and maintainability
feat(env): use miniconda and uv to install environments
…an-cause-wrong-file-to-be-shared

fix(export): handle multiple TG results files to prevent errors

@kcazzatoCMAP kcazzatoCMAP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two small updates then should be good; tested with c26q2_100 and worked/produced the same results

throw_on_error=True,
scenario=_m.Modeller().scenario
)
print(f'Successfully process {file}')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print(f'Successfully process {file}')
print(f'Successfully processed {file}')

Comment thread Database/trip_gen.bat

echo Importing production and attraction matrices (used only for b/l/m truck distribution)...
call emme -ng 000 -m prep_macros\import.tg.results 1 >> tg.rpt
call python prep_macros\import_tg_results.py >> tg.rpt

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
call python prep_macros\import_tg_results.py >> tg.rpt
uv run prep_macros\import_tg_results.py >> tg.rpt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants